home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / bin / libart-config < prev    next >
Text File  |  2005-10-20  |  953b  |  57 lines

  1. #!/bin/sh
  2.  
  3. prefix=/usr
  4. exec_prefix=${prefix}
  5. exec_prefix_set=no
  6. includedir=${prefix}/include
  7. libdir=/usr/lib
  8.  
  9. usage="\
  10. Usage: libart-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
  11.  
  12. if test $# -eq 0; then
  13.       echo "${usage}" 1>&2
  14.       exit 1
  15. fi
  16.  
  17. while test $# -gt 0; do
  18.   case "$1" in
  19.   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  20.   *) optarg= ;;
  21.   esac
  22.  
  23.   case $1 in
  24.     --prefix=*)
  25.       prefix=$optarg
  26.       if test $exec_prefix_set = no ; then
  27.         exec_prefix=$optarg
  28.       fi
  29.       ;;
  30.     --prefix)
  31.       echo $prefix
  32.       ;;
  33.     --exec-prefix=*)
  34.       exec_prefix=$optarg
  35.       exec_prefix_set=yes
  36.       ;;
  37.     --exec-prefix)
  38.       echo $exec_prefix
  39.       ;;
  40.     --version)
  41.       echo 2.2.0
  42.       ;;
  43.     --cflags)
  44.       echo -I${includedir}/gnome-1.0
  45.       ;;
  46.     --libs)
  47.       echo -L${libdir} -lart_lgpl -lm
  48.       ;;
  49.     *)
  50.       echo "${usage}" 1>&2
  51.       exit 1
  52.       ;;
  53.   esac
  54.   shift
  55. done
  56.  
  57.